package cs4280.ass2.entity;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class House extends AuditableEntity {
	private static final long serialVersionUID = 1L;
	private String name;
	private String address;
	private List<HouseSeat> seatLocationList = new ArrayList<HouseSeat>();

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAddress() {
		return address;
	}

	@Override
	public String toString() {
		ToStringBuilder builder = new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE);
		builder.append("id", this.getId());
		builder.append("firstname", this.getName());
		builder.append("lastname", this.getAddress());
		builder.append("seatLocationList",this.getSeatLocationList());
		builder.append("createDate", this.getCreateDate());
		builder.append("createUser", this.getCreateUser());
		builder.append("modifyDate", this.getModifyDate());
		builder.append("modifyUser", this.getModifyUser());
		return builder.toString();
	}

	public void setSeatLocationList(List<HouseSeat> seatLocationList) {
		this.seatLocationList = seatLocationList;
	}

	public List<HouseSeat> getSeatLocationList() {
		return seatLocationList;
	}

}
